﻿using HK.Core.GUIEx.Protocol.Attribute;

namespace HK.Core.Serializable.Protocol.Attribute
{
    /// <summary>
    /// 接口 : Attribute - ListView
    /// </summary>
    public interface IListViewAttribute : IGUIAttribute
    {
        /// <summary>
        /// Element的Key Property
        /// </summary>
        string ElementKey { get; }

#region Options

        /// <summary>
        /// 可检索
        /// </summary>
        bool Searchable { get; }

        /// <summary>
        /// 可排序
        /// </summary>
        bool Sortable { get; }
        
        /// <summary>
        /// 可分页
        /// </summary>
        bool Pageable { get; }

#endregion

#region Pagination

        /// <summary>
        /// 分页大小
        /// <para>* 既每页的大小</para>
        /// </summary>
        int PageSize { get; }

#endregion
        
    }
}
